home *** CD-ROM | disk | FTP | other *** search
- /* CheckBox.rexx */
-
- IF ~SHOW('LIBRARIES','tritonrexx.library') THEN DO
- IF ~ADDLIB('tritonrexx.library',10,-30,0) THEN DO
- SAY 'Kann die <tritonrexx.library> nicht öffnen!'
- EXIT(10)
- END
- END
-
- windowtags = WindowID(1),
- WindowTitle('CheckBox'),
- 'VertGroupA',
- 'Space',
- 'HorizGroupAC',
- 'Space',
- TextID("_CheckBox",10),
- 'Space',
- CheckBox(10),
- 'Space',
- 'EndGroup',
- 'Space',
- 'EndGroup',
- 'EndProject'
-
- app = TR_CREATEAPP('TRCA_Name CheckBox')
-
- IF app ~= '00000000'x THEN DO
-
- window = TR_OPENPROJECT(app,windowtags)
-
- IF window ~= '00000000'x THEN DO
- ende = 0
-
- DO WHILE ende ~= 1
- CALL TR_WAIT(app,'')
-
- DO WHILE TR_HANDLEMSG(app,'event')
- IF event.trm_class = 'TRMS_NEWVALUE' THEN DO
- SELECT
- WHEN event.trm_id = 10 THEN DO
- IF event.trm_data = 0 THEN
- SAY 'CheckBox aus'
-
- IF event.trm_data = 1 THEN
- SAY 'CheckBox an'
- END
-
- OTHERWISE
- NOP
- END
- END
-
- IF event.trm_class = 'TRMS_CLOSEWINDOW' THEN DO
- status = TR_GETATTRIBUTE(window,10,'TRAT_Value')
-
- IF status = 0 THEN
- SAY 'CheckBox war aus'
-
- IF status = 1 THEN
- SAY 'CheckBox war an'
-
- ende = 1
- END
- END
- END
-
- CALL TR_CLOSEPROJECT(window)
- END
-
- CALL TR_DELETEAPP(app)
- END
-
- EXIT(0)
-